import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);

const routes = [{
    path:'/',
    redirect:'/home'
  },{
    path:'/home',
    meta:{ title: '首页' },
    component:() =>import ('@/views/home.vue')
  },{
    path:'/bingleMaps',
    meta:{ title: '地图导航' },
    component:() =>import ('@/views/BingleMaps/bingleMaps.vue')
  },{
    path:'/dataVis',
    meta:{ title: '数据可视化' },
    component:() =>import ('@/views/DataVis/dataVis.vue')
  },
]

const router = new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
